<!--添加用户表单-->
<div class="tab_edit">
    <form action="{:Url('credit_audit_submit')}" method="post" id="credit_audit_submit">
        <input type="hidden" name="credit_product_id" value="{$credit_product_id}"/>
        <table width="100%" class="list">
            <tr>
                <td class="t_r t_left_w">选择银行分类：</td>
                <td class="t_l">{:widget('common/Select/select',array('bank_type_id',array($bank_type_list,"bank_type_id","bank_type_name"),$credit_info['bank_type_id'],false,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">选择银行：</td>
                <td class="t_l">{:widget('common/Select/select_parent',array('bank_id',array($bank_list,"bank_id","bank_name","bank_type_id"),'bank_type_id',$credit_info['bank_id'],false,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡银行编号：</td>
                <td class="t_l">{:widget("common/Input/input",array("credit_bank_code",$credit_info['credit_bank_code'],false,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡名称：</td>
                <td class="t_l">{:widget("common/Input/input",array("credit_product_name",$credit_info['credit_product_name'],false,true,"width:85%;"))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡图片：</td>
                <td class="t_l">{:widget('common/Images/wos',array('credit_product_url','credit',$credit_info['credit_product_url'],false,false,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡概要：</td>
                <td class="t_l">{:widget('common/TextArea/text_area',array('credit_product_outline',$credit_info['credit_product_outline'],false,true,"width:85%;"))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">年费：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_fee','credit_fee',$credit_info['credit_fee'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡等级：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_level','credit_level',$credit_info['credit_level'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡币种：</td>
                <td class="t_l">{:widget('common/CheckBox/checkbox',array('credit_currency','credit_currency',$credit_info['credit_currency'],null,null,true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">发卡组织：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_agency','credit_agency',$credit_info['credit_agency'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">特权：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_privilege','credit_privilege',$credit_info['credit_privilege'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡用途：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_purpose','credit_purpose',$credit_info['credit_purpose'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">卡面颜色：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_color','credit_color',$credit_info['credit_color'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">卡面类型：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_type','credit_type',$credit_info['credit_type'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡申请地址：</td>
                <td class="t_l">{:widget("common/Input/input",array("credit_apply_url",$credit_info['credit_apply_url'],true,true,"width:85%;"))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡初期申请数量：</td>
                <td class="t_l">{:widget("common/Input/input",array("credit_init_apply",$credit_info['credit_init_apply'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信用卡时间申请数量：</td>
                <td class="t_l">{:widget("common/Input/input",array("credit_real_apply",$credit_info['credit_real_apply'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">申卡条件：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 810px;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                            <tr>
                                <th width="100%" class="tabSort-header">申请信用卡条件</th>
                            </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_condition_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="condition[]" style="width: 100%;" value="{$info}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">有效区域：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 810px;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="100%" class="tabSort-header">有效区域省份/城市</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="product_area_list" item="info"}
                                    <tr class="info">
                                        <td><input type="hidden" name="area[]" value="{$info['province']},{$info['city']}">{:widget('common/Name/area',array($info['province']))}、{:widget('common/Name/area',array($info['city']))}</td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">专属特权：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 100%;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="30%" class="tabSort-header">专属特权内容</th>
                                    <th width="70%" class="tabSort-header">专属特权说明</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_privilege_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="privilege[title][]" style="width: 100%;" value="{$info['title']}"></td>
                                        <td><input type="text" name="privilege[content][]" style="width: 100%;" value="{$info['content']}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">基本信息：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 100%;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="30%" class="tabSort-header">基本信息标题</th>
                                    <th width="70%" class="tabSort-header">基本信息内容</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_base_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="base[title][]" style="width: 100%;" value="{$info['title']}"></td>
                                        <td><input type="text" name="base[content][]" style="width: 100%;" value="{$info['content']}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">费用信息：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 100%;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="30%" class="tabSort-header">费用信息标题</th>
                                    <th width="70%" class="tabSort-header">费用信息内容</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_fee_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="free[title][]" style="width: 100%;" value="{$info['title']}"></td>
                                        <td><input type="text" name="free[content][]" style="width: 100%;" value="{$info['content']}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">分期利息：</td>
                <td class="t_l">
                    03期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][0],true,true))}%
                    06期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][1],true,true))}%
                    09期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][2],true,true))}%<br><br>
                    12期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][3],true,true))}%
                    18期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][4],true,true))}%
                    24期利息：{:widget("common/Input/input",array("interest[]",$credit_info['credit_interest_str'][5],true,true))}%
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">优惠活动：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 100%;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="20%" class="tabSort-header">优惠活动类型</th>
                                    <th width="30%" class="tabSort-header">优惠活动标题</th>
                                    <th width="50%" class="tabSort-header">优惠活动内容</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_discount_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="discount[type][]" style="width: 100%;" value="{$info['type']}"></td>
                                        <td><input type="text" name="discount[title][]" style="width: 100%;" value="{$info['title']}"></td>
                                        <td><input type="text" name="discount[content][]" style="width: 100%;" value="{$info['content']}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">申卡秘籍：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 100%;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="30%" class="tabSort-header">申卡秘籍标题</th>
                                    <th width="70%" class="tabSort-header">申卡秘籍内容</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="credit_info['credit_cheat_str']" item="info"}
                                    <tr class="info">
                                        <td><input type="text" name="cheat[title][]" style="width: 100%;" value="{$info['title']}"></td>
                                        <td><input type="text" name="cheat[content][]" style="width: 100%;" value="{$info['content']}"></td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">状态：</td>
                <td class="t_l">
                    {:widget('common/Color/color',array('credit_status',$credit_info["credit_status"]))}
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">备注：</td>
                <td class="t_l">
                    {:widget('common/TextArea/text_area',array('remark',$credit_info['remark'],false,true,"width:800px;"))}
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">创建时间：</td>
                <td class="t_l">{$credit_info["create_time"]}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">更新时间：</td>
                <td class="t_l">{$credit_info["update_time"]}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">审核状态：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('credit_status','credit_status_temp',null,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">审核说明：</td>
                <td class="t_l">
                    {:widget('common/TextArea/text_area',array('audit_note',null,false,false,"width:800px;"))}
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w"></td>
                <td class="t_l">
                    <div class="btn"><input type="submit" class="but_blue" value="保存信息"></div>
                </td>
            </tr>
        </table>
    </form>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("#credit_audit_submit").submit(function(){
            //判断是否选择是否
            if($("input[name='credit_status']:checked").val() == 3){

                //判断是否填写失败理由
                if($.trim($("textarea[name='audit_note']").val()) == ""){
                    alert("请填写审核失败说明！");
                    return false;
                }
            }

            //审核通过
            return true;
        });
    });
</script>